import { requestClient } from '#/api/request';

//查询
export async function getStuListApi(params: any) {
  return requestClient.get('/certification/get-cert-org-user-page', { params });
}

// 添加
export async function createOrgUserApi(data: any) {
  return requestClient.post('/certification/create-cert-org-user', data);
}

// 修改
export async function updateOrgUserApi(data: any) {
  return requestClient.patch('/*', data);
}

//删除
export async function deleteStuApi(id:any) {
  return requestClient.delete(`/certification/delete-cert-org-user/${id}`);
}
//根据组织id查询可以添加的用户列表
export async function getWhiteUserByOrgidApi(params: any) {
  return requestClient.get('/certification/get-white-user-by-orgid', {params});
}

// 批量新增上传文件
export async function uploadTplFileApi(data:any) {
  return requestClient.post('/*', data)
}
//根据组织id查询可以考试信息
export async function getOrgExamStatusApi(id: any) {
  return requestClient.get(`/exam/query-exam-info-by-organization`, { params: { orgId: id } });
}
